package com.gsoc.spreadsheet.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.gsoc.spreadsheet.client.ClusterRPC;

public class ServerCluster extends RemoteServiceServlet implements ClusterRPC {
	
	public void saveCluster(int clusX, int clusY, Double[][] data) {
		return;
	}
	
	public Double[][] loadCluster(int clusX, int clusY, int size) {
		
		Double[][] doubles = new Double[size][size];
		
		for(int r = 0; r < size; ++r) {
			for(int c = 0; c < size; ++c) {
				doubles[r][c] = new Double(clusX*clusY);
			}
		}
		
		return doubles;
	}
}
